#pragma once

#include "./circuit.hh"

namespace ycspice::preprocess {

    enum class ComponetType {
        Resistance,
        Capacitance,
        Inductance,
    };

    class Componet : public Circuit {
    public:
        Componet(ComponetType type, std::string value);
        virtual auto expand_spice(std::string_view inst_name, std::span<std::string> nets) const -> std::string override; 
        
        static auto componet_name(ComponetType type, std::string value) -> std::string;

    private:
        ComponetType _type;
        std::string _value;
    };

}